﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NopSolutions.NopCommerce.BusinessLogic.Categories;

namespace NopSolutions.NopCommerce.LuceneHelper
{
    public class CategoryValue : Category
    {
        public CategoryValue(Category inheritFrom, long total)
        {
            this.CategoryId = inheritFrom.CategoryId;
            this.CreatedOn = inheritFrom.CreatedOn;
            this.Deleted = inheritFrom.Deleted;
            this.Description = inheritFrom.Description;
            this.DisplayOrder = inheritFrom.DisplayOrder;
            this.MetaDescription = inheritFrom.LocalizedMetaDescription;
            this.MetaKeywords = inheritFrom.MetaKeywords;
            this.MetaTitle = inheritFrom.MetaTitle;
            this.Name = inheritFrom.Name;
            this.PageSize = inheritFrom.PageSize;
            this.ParentCategoryId = inheritFrom.ParentCategoryId;
            this.PictureId = inheritFrom.PictureId;
            this.PriceRanges = inheritFrom.PriceRanges;
            this.Published = inheritFrom.Published;
            this.SEName = inheritFrom.SEName;
            this.ShowOnHomePage = inheritFrom.ShowOnHomePage;
            this.TemplateId = inheritFrom.TemplateId;
            this.UpdatedOn = inheritFrom.UpdatedOn;
            this.Total = total;
        }

        public long Total { get; set; }
    }
}
